/**
 * Created by Administrator on 2018/4/15 0015.
 */
import java.util.*;
public class Arithmetic4 {
        public static void main(String args[]){
            ArrayList<String> question=new ArrayList<String>();
            System.out.println("请输入要计算的式子个数:");
            Scanner sc=new Scanner(System.in);
            int count=sc.nextInt();
            System.out.println("请输入你要求解的式子:");
            for(int i=0;i<count;i++){
                sc=new Scanner(System.in);
                question.add(sc.nextLine());
            }
            for(int i=0;i<count;i++){
                System.out.print(question.get(i)+"=");
                ArithmeticFunc calc = new ArithmeticFunc();
                calc.calc(question.get(i));
            }
        }
    }

